package com.zx._09_架构.重构;

/**
 * @program: knowledge
 * @description:
 * @author: xue.zhang
 * @create: 2021-11-17 10:20
 */
public class 消除过长参数列表 {

    class BadExample {

        public void someMethod(int i, int j, int k, int l, int m, int n) {
            //code
        }
    }

    /* ---------------------分割线---------------------- */
    class GoodExample {

        public void someMethod(Data data) {
            //code
        }
    }

    class Data {

        private int i;
        private int j;
        private int k;
        private int l;
        private int m;
        private int n;
        //getter&&setter
    }
}
